package com.ffcs.test.redis;

import com.ffcs.test.mysql.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 天真热
 * @create 2024-02-19 19:42
 * @desc
 **/
@RestController
@RequestMapping("/redis")
public class RedisController {
    @Autowired
    RedisService redisService;

    @RequestMapping("/test")
    public String test() {
        return redisService.getdata();
    }



}





